/**
 * 
 */
package org.t2.backstage.module.recharge.service;

import java.util.List;

import org.gaming.service.service.redis.OneToManyService;
import org.springframework.stereotype.Service;
import org.t2.backstage.module.recharge.model.RechargeProductCfg;

/**
 * @author YY
 *
 */
@Service
public class RechargeProductCfgService extends OneToManyService<RechargeProductCfg> {

	public void deleteAll() {
		List<RechargeProductCfg> cfgs = this.repository().getAll();
		this.repository().deleteAll(cfgs);
	}
	
	public List<RechargeProductCfg> getAll() {
		return this.repository().getAll();
	}

	@Override
	protected String namespace() {
		return "system";
	}
	
	
}
